#pragma once

#include <QWidget>
#include <QToolBox>
#include "ui_ModuleManagerView.h"
#include "ModuleItem.h"

class ModuleManagerView : public QWidget
{
	Q_OBJECT

public:
	ModuleManagerView(QWidget *parent = nullptr);
	~ModuleManagerView();
private:
	void createToolBox();
	QWidget* createCellWidget(const QString& text, ModuleItem::DiagramType type);
private slots:
	void onButtonPress();
protected:
	void mouseMoveEvent(QMouseEvent *event) override;
	void mousePressEvent(QMouseEvent* event) override;
private:
	Ui::ModuleManagerViewClass ui;

	QToolBox *m_toolBox;
	int m_itemType;
};
